#ifndef IROUTE_H
#define IROUTE_H
typedef struct __attribute__((__packed__)){
	uint8_t 	push;
	uint8_t 	mov1;
	uint32_t 	v1;
	uint8_t	mov2;
	uint32_t	v2;
	uint16_t	jump;
}iroute_jentry;

typedef void (*iroute_hook_handler)(uint32_t line);
struct Tiroute_hook{
	iroute_hook_handler	handler;
	struct Tiroute_hook	*next, *prev;
};
typedef struct Tiroute_hook iroute_hook;

void iroute_stub86();
void iroute_stub();
int iroute_initialize();
int iroute_makehook(uint32_t line, iroute_hook_handler handler);
#endif

